﻿#ifndef CMDCREATETABLEWIDGET_H
#define CMDCREATETABLEWIDGET_H

#include "CommandManager/CommandBase.h"

namespace PostCommand
{
    /// @brief 后处理保存图像命令
    class CmdCreateTableWidget : public CommandManager::CommandBase
    {
        Q_OBJECT

    public:
        CmdCreateTableWidget();
        ~CmdCreateTableWidget();

        bool execute() override;
        void undo() override;
        void redo() override;

        void setReaderIndex(int readerIndex) { m_readerIndex = readerIndex; }

    private:
        int m_readerIndex;
    };
} // namespace PostCommand

#endif
